home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / hf^k-2.dms / in.adf / MUIClass.Lha / Include / Classes / TWiMUI / Numericbutton.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-06  |  2.1 KB  |  80 lines

  1. //
  2. //  $VER: Numericbutton.h 1.2 (02 Sep 1996)
  3. //
  4. //    c 1996 Thomas Wilhelmi
  5. //
  6. //
  7. // Address : Taunusstrasse 14
  8. //           61138 Niederdorfelden
  9. //           Germany
  10. //
  11. //  E-Mail : willi@twi.rhein-main.de
  12. //
  13. //   Phone : +49 (0)6101 531060
  14. //   Fax   : +49 (0)6101 531061
  15. //
  16. //
  17. //  $HISTORY:
  18. //
  19. //  16 Jun 1996 :   1.0 : first public Release
  20. //
  21. //  02 Sep 1996 :   1.2 : Neu:
  22. //                        - ClassNum() für Exception-Handling.
  23. //                        Änderungen
  24. //                        - Parameter des Copy-Konstruktor als 'const'-Parameter definiert
  25. //
  26.  
  27. #ifndef CPP_TWIMUI_NUMERICBUTTON_H
  28. #define CPP_TWIMUI_NUMERICBUTTON_H
  29.  
  30. #ifndef CPP_TWIMUI_NUMERIC_H
  31. #include <classes/twimui/numeric.h>
  32. #endif
  33.  
  34. class MUINumericbutton : public MUINumeric
  35.     {
  36.     protected:
  37.         virtual const ULONG ClassNum() const;
  38.     public:
  39.         MUINumericbutton(const struct TagItem *t) : MUINumeric(MUIC_Numericbutton) { init(t); };
  40.         MUINumericbutton(const Tag, ...);
  41.         MUINumericbutton(const STRPTR form, const ULONG min, const ULONG max) : MUINumeric(MUIC_Numeric)
  42.             {
  43.             init(MUIA_Frame, MUIV_Frame_Button,
  44.                 MUIA_Background, MUII_ButtonBack,
  45.                 MUIA_Numeric_Min, min,
  46.                 MUIA_Numeric_Max, max,
  47.                 MUIA_Numeric_Format, form,
  48.                 TAG_DONE)
  49.             };
  50.         MUINumericbutton(const STRPTR form, const ULONG min, const ULONG max, const UBYTE cc) : MUINumeric(MUIC_Numeric)
  51.             {
  52.             init(MUIA_Frame, MUIV_Frame_Button,
  53.                 MUIA_Background, MUII_ButtonBack,
  54.                 MUIA_ControlChar, cc,
  55.                 MUIA_Numeric_Min, min,
  56.                 MUIA_Numeric_Max, max,
  57.                 MUIA_Numeric_Format, form,
  58.                 TAG_DONE)
  59.             };
  60.         MUINumericbutton() : MUINumeric(MUIC_Numericbutton) { };
  61.         MUINumericbutton(const MUINumericbutton &);
  62.         virtual ~MUINumericbutton();
  63.         MUINumericbutton &operator= (const MUINumericbutton &);
  64.     };
  65.  
  66. class MUILabNumericbutton
  67.     :   public MUILabelHelp,
  68.         public MUINumericbutton
  69.     {
  70.     public:
  71.         MUILabNumericbutton(const STRPTR lab, const STRPTR form, const ULONG min, const ULONG max)
  72.             :   MUILabelHelp(lab),
  73.                 MUINumericbutton(form, min, max, MUILabelHelp::gCC())
  74.             { };
  75.         virtual ~MUILabNumericbutton();
  76.         MUILabNumericbutton &operator= (const MUILabNumericbutton &);
  77.     };
  78.  
  79. #endif
  80.